﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Devices.aspx.cs" Inherits="System_Devices" Title="Devices" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <asp:ListView ID="lvDevices" runat="server">
        <LayoutTemplate>
            <table style="width: 100%" cellspacing="0">
                <caption style="background-color:#5D7B9D; font-weight:bold">
                    Devices with errors
                </caption>
                <thead style="text-align: left; background-color:#5D7B9D; font-weight:bold">
                    <tr>
                        <th>
                            Device
                        </th>
                        <th>
                            Manufacturer
                        </th>
                        <th>
                            Error
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr id="itemPlaceholder" runat="server" />
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr style="background-color:#EFF3FB">
                <td>
                    <%#Eval("Caption") %>
                </td>
                <td>
                    <%#Eval("Manufacturer") %>
                </td>
                <td>
                    <%#Eval("ConfigManagerErrorCode") %>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            <div style="font-style: italic; text-align: center; background-color:#EFF3FB">
                    All devices are working properly
            </div>
        </EmptyDataTemplate>
    </asp:ListView>
</asp:Content>
